package Beans;

import User.FileUserManager;
import User.UserManager;
import javax.ejb.Stateless;

@Stateless
public class UserManagerBean {

    public boolean logIn(String name, String password) {
        UserManager userManager = new FileUserManager();
        return userManager.logIn(name, password);
    }

    public boolean register(String username, String password, String name, String surname, String email) {
        UserManager userManager = new FileUserManager();
        return userManager.register(username, password, name, surname, email);
    }
}
